var keythereum = require("keythereum");
var datadir = 'C:\\Users\\Administrator\\AppData\\Roaming\\MoacNode\\testnet';  //moacnode目录，根据实际修改
var address= "0xb852b60e3d84700f32a81536d28a88a97a5d0bb9";//本地节点账号
const password = "123456";//账号密码

var keyObject = keythereum.importFromFile(address, datadir);
var privateKey = keythereum.recover(password, keyObject);//输出私钥
console.log(privateKey.toString('hex'));
